<?php
function logs($logmsg) {
	if($logmsg) {
		$fp = fopen("log/mylog-" . date("Y-m-d"), 'a');
		fwrite($fp, date("Y-m-d H:i:s") . " " . $logmsg . "\n");
		fclose($fp);
	}
}
?>
